Back to Picture Push Button Object
Up to Table of Contents
Ahead to Radio Button Object

Push Button Object

A Push Button is a text-labeled button that you can use to let the user initiate an activity. For example, you can use a Push Button labeled "Play" to allow the user to play an Audio object. Or, as another example, you can let the user move to the next page by pressing a button labeled "Next."

Use the Push Button tool to draw Push Buttons. The tool appears as follows:

Push Button Appearance

Use the Label property to control the text that appears in a Push Button. The Font property controls the character font and size. Use the TextColor property to set the color of the characters and use the BackgroundColor property to change the background color of the object. (Note that this property is not supported on all platforms.)

Interactivity

A user can interact with a Push Button in several ways.

For more information on available events, see the section entitled "Push Button Methods, Properties and Events."

Lesson: Using a Push Button to Show a Graphic

In this lesson you set up a Push Button to make a Graphic object visible when the user clicks. When the user clicks, the Graphic object slides into position from the left side of the window.

Note: A completed version of this lesson, called lesn_13, is located in the \Jamba\lessons directory.

First you'll draw both objects.

Now you need to set up Graphic1.You'll specify the file you want to display when the object becomes visible.

Now use the Visible property to make sure that the object is not visible at first.

Now set up the object so that it slides into position when it appears.

The HowToShow dialog box appears.

Now you'll set up the Push Button.

The Properties tab appears as follows:

Now set the To Do List so that Graphic1 becomes visible when the user clicks PushButton1.

The default event is Click. Because you want the To Do List action to occur when the user clicks, you'll leave the default as is.

Note: See the "Audio Object" lessons for another example of how to use a Push Button.

Push Button Properties

Push Buttons support the following properties:

Properties Methods Events
BackgroundColor MoveAndSize() Click
Enabled SlideTo() Create
Font
 
Hide
Height
 
Show
HowToHide
 
SlideToComplete
HowToShow
 
 
Label
 
 
Name
 
 
TextColor
 
 
Visible
 
 
Width
 
 
X
 
 
Y
 
 

Back to Picture Push Button Object
Up to Table of Contents
Ahead to Radio Button Object